﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    /// <summary>
    /// Nguyễn Đặng Anh Duy
    /// MSSV : 11100204
    /// Email : itc.anhduy@gmail.com
    /// <summary>
    class CInfoMenu
    {
        #region "Variable"
        private Texture2D _bgMenu;
        private Texture2D _btnNewGame;
        private Texture2D _btnSettings;
        private Texture2D _btnAbout;
        private Texture2D _btnExit;

        private Rectangle _recbtnNewGame;
        private Rectangle _recbtnSettings;
        private Rectangle _recbtnAbout;
        private Rectangle _recbtnExit;

        private Texture2D _bgBlack;

        private ContentManager _Content;
        private Song _songMenu;
        #endregion

        #region "Properties"
        public Texture2D BgBlack
        {
            set { _bgBlack = value; }
            get { return _bgBlack; }
        }
        public Rectangle RecBtnNewGame
        {
            set { _recbtnNewGame = value; }
            get { return _recbtnNewGame; }
        }

        public Rectangle RecBtnSettings
        {
            set { _recbtnSettings = value; }
            get { return _recbtnSettings; }
        }

        public Rectangle RecBtnAbout
        {
            set { _recbtnAbout = value; }
            get { return _recbtnAbout; }
        }

        public Rectangle RecBtnExit
        {
            set { _recbtnExit = value; }
            get { return _recbtnExit; }
        }

        public Texture2D BtnExit
        {
            set { _btnExit = value; }
            get { return _btnExit; }
        }
        public Song SongMenu
        {
            set { _songMenu = value; }
            get { return _songMenu; }
        }
        public Texture2D BgMenu
        {
            set { _bgMenu = value; }
            get { return _bgMenu; }
        }
        public Texture2D BtnNewGame
        {
            set { _btnNewGame = value; }
            get { return _btnNewGame; }
        }
        public Texture2D BtnSettings
        {
            set { _btnSettings = value; }
            get { return _btnSettings; }
        }
        public Texture2D BtnAbout
        {
            set { _btnAbout = value; }
            get { return _btnAbout; }
        }
        #endregion

        #region "Constructor"
        public CInfoMenu(ContentManager content)
        {
            _Content = content;
            SongMenu = _Content.Load<Song>(@"Resource/Sound/MenuMusic1");
            BgMenu = _Content.Load<Texture2D>(@"Resource/Maps/bgMenu");

            BtnNewGame = _Content.Load<Texture2D>(@"Resource/Buttons/btnNewGame");
            BtnSettings = _Content.Load<Texture2D>(@"Resource/Buttons/btnSettings");
            BtnAbout = _Content.Load<Texture2D>(@"Resource/Buttons/btnAbout");
            BtnExit = _Content.Load<Texture2D>(@"Resource/Buttons/btnExit");

            BgBlack = _Content.Load<Texture2D>(@"Resource/Maps/Pause");

            RecBtnNewGame = new Rectangle(275, 50, BtnNewGame.Width, BtnNewGame.Height);
            RecBtnSettings = new Rectangle(275, 140, BtnSettings.Width, BtnSettings.Height);
            RecBtnAbout = new Rectangle(275, 230, BtnAbout.Width, BtnAbout.Height);
            RecBtnExit = new Rectangle(275, 320, BtnExit.Width, BtnExit.Height);
        }
        #endregion

        #region "Method"

        #endregion
    }
}
